import { createContext, useContext } from 'solid-js'
import { GlobalStatus } from './type'

export const GLOBAL_STATUS = createContext<GlobalStatus | undefined>();
export const useGlobal = () => useContext(GLOBAL_STATUS);
